import request from '@/utils/request'

// 查询批量操作列表
export function listDispatchBatchOperation(query) {
  return request({
    url: '/system/dispatchBatchOperation/list',
    method: 'get',
    params: query
  })
}

// 查询批量操作详细
export function getDispatchBatchOperation(operatorId) {
  return request({
    url: '/system/dispatchBatchOperation/' + operatorId,
    method: 'get'
  })
}

// 新增批量操作
export function addDispatchBatchOperation(data) {
  return request({
    url: '/system/dispatchBatchOperation',
    method: 'post',
    data: data
  })
}

// 修改批量操作
export function updateDispatchBatchOperation(data) {
  return request({
    url: '/system/dispatchBatchOperation',
    method: 'put',
    data: data
  })
}

// 删除批量操作
export function delDispatchBatchOperation(operatorId) {
  return request({
    url: '/system/dispatchBatchOperation/' + operatorId,
    method: 'delete'
  })
}
